Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: publish --stage-tags missing generated tags #847

Merged
merged 1 commit into from
Aug 27, 2023

Conversation

joemiller
Copy link
Contributor

The --stage-tags FILE flag is only including the tags explicitly set as positional args to apko publish. Any tags generated by --package-version-tag/stem are not included.

The additionalTags slice is empty when this code is reached. Instead we can use the allTags slice generated just before this step instead of shadowing it. allTags includes a de-duped set of tags that includes both explicit tags from the command line and any generated/discovered tags that come from package-version and stemming.

@joemiller joemiller requested a review from a team as a code owner August 16, 2023 01:42
@joemiller joemiller requested review from rawlingsj and removed request for a team August 16, 2023 01:42
@joemiller
Copy link
Contributor Author

ping

The `--stage-tags FILE` flag is only including the tags explicitly set
as positional args to `apko publish`. Any tags generated by
`--package-version-tag/stem` are not included.

The `additionalTags` slice is empty when this code is reached. Instead
of shadowing `allTags` slice generated just before this step we can use
it. It includes a de-duped set of tags that includes both explicit tags from
the command line and any generated/discovered tags that come from
package-version and stemming.

Signed-off-by: joe miller <joeym@joeym.net>
@kaniini kaniini enabled auto-merge August 27, 2023 19:46
@kaniini kaniini merged commit 03e69b3 into chainguard-dev:main Aug 27, 2023
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants